package com.example;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

/**
 * Created by Administrator on 2018/5/16.
 */

public class PictureActivity extends AppCompatActivity implements View.OnClickListener{
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.picturelayout);
        initView();
    }

    private void initView() {
        findViewById(R.id.iv_one).setOnClickListener(this);
       findViewById(R.id.iv_two).setOnClickListener(this);
       findViewById(R.id.iv_three).setOnClickListener(this);
    }
    @Override
    public void onClick(View view) {
        int id =view.getId();
        switch (id){
            case R.id.iv_one:
                Intent intent=new Intent(this,PictOne.class);
                startActivity(intent);
                break;
            case R.id.iv_two:
                Intent intent1=new Intent(this,PictTwo.class);
                startActivity(intent1);
                break;
            case R.id.iv_three:
                Intent intent2=new Intent(this,PictThree.class);
                startActivity(intent2);
                break;
        }

    }
}
